<?php
/**
 * 栏目服务层
 * @author maniac
 */
namespace app\common\service;

use app\common\model\Columns AS ColumnsModel;

class Columns extends Base
{
    /**
     * 获取所有终极栏目
     * @param  string $ids id
     */
    public function getLastColumns($ids)
    {
        $where = [
            ['id', 'in', $ids],
            ['is_last', 'eq', 1],
        ];
        return ColumnsModel::where($where)->column('id');
    }
}
